package com.gzy.xuexiziliao.service;

import com.gzy.xuexiziliao.common.result.PageResult;
import com.gzy.xuexiziliao.pojo.entity.Doctor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

public interface DoctorService {
    void save(Doctor doctor);

    void delete(List<Integer> ids);

    void update(Doctor doctor);

    Doctor getById(Integer id);

    PageResult page(Integer page, Integer pageSize, String name, Short gender, LocalDate begin, LocalDate end);

    List<Doctor> getByName(String name);


    /**
     * 预约
     * @param doctorinfo
     * @return
     */
    Doctor Appointment(Doctor doctorinfo);

    /**
     * 取消预约
     * @param doctorinfo
     * @return
     */
    Doctor cancelAppointment(Doctor doctorinfo);


    PageResult appointmentpage(Integer page, Integer pageSize, int appointment, LocalDate begin, LocalDate end);
}
